package com.seocoo.worker.order.model;


import com.seocoo.worker.base.http.BasePageRsp;
import com.seocoo.worker.order.entity.RspOrderMaintain;
import com.seocoo.worker.order.req.ReqOrderMaintain;
import com.sfh.lib.HandleException;
import com.sfh.lib.IResult;
import com.sfh.lib.mvvm.BaseViewModel;

/**
 * author : Ssp
 * e-mail : 981297079@qq.com
 * date   : 2020/2/2320:32
 * desc   : 安装订单列表
 * version: 1.0
 */
public class OrderMaintainModel extends BaseViewModel {

    public void refreshData(ReqOrderMaintain reqOrderInstall) {
        this.execute(reqOrderInstall, new IResult<BasePageRsp<RspOrderMaintain>>() {
            @Override
            public void onFail(HandleException e) {
                setValue("onQueryError");
            }

            @Override
            public void onSuccess(BasePageRsp<RspOrderMaintain> t) throws Exception {
                setValue("onQuerySuccess", t);
            }
        });
    }
}
